package cn.zyq.ykb.beans.config;

import cn.zyq.ykb.system.common.BaseBean;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 置顶道具配置对象 configTop
 *
 * @author SystemAuth
 * @date 2023-05-24
 */
@Data
@Entity
@Table(name = "`configProp`")
@JsonInclude(value = JsonInclude.Include.NON_NULL)
public class ConfigProp extends BaseBean implements Serializable {
    /**
     * 主键id，用于关联
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "JDBC")
    @Column(name = "`configPropID`")
    @ApiModelProperty("主键id，用于关联")
    private Integer configPropID;
    /**
     * 置顶次数
     */
    @Column(name = "`number`")
    @ApiModelProperty("置顶次数")
    private Integer number;
    /**
     * 置顶价格
     */
    @Column(name = "`price`")
    @ApiModelProperty("置顶价格")
    private BigDecimal price;
    /**
     * 折合单次价格
     */
    @Column(name = "`singlePrice`")
    @ApiModelProperty("折合单次价格")
    private BigDecimal singlePrice;
    /**
     * 折扣系数
     */
    @Column(name = "`ratio`")
    @ApiModelProperty("折扣系数")
    private String ratio;
    /**
     * 道具类型（1刷新，2置顶）
     */
    @Column(name = "`type`")
    @ApiModelProperty("道具类型（1刷新，2置顶）")
    private Integer type;

    @Transient
    @ApiModelProperty("支付宝支付方式1 安卓 2 IOS")
    private Integer phoneSystems;

    @Transient
    @ApiModelProperty("登录ID")
    private Integer tUserID;
}
